import { message } from 'antd'

export const useCopyText = async (text: string) => {
  try {
    await navigator.clipboard.writeText(text)
    message.success('复制成功')
  } catch {}
}
